/*
	Author: Samuel Thacker
	Description: A header file which declares and defines a dummy structure.
	Revisions:
		2012/1/26 - Creation of this header file.
*/

#ifndef DUMMY_STRUCTURE_H
#define DUMMY_STRUCTURE_H

typedef struct dLinkedList dll;
typedef struct dElement de;

struct dLinkedList /*A dummy struct that points to the first and the last elements of a series of 'dElement' structs.*/
	{
	de * first;
	de * last;
	int size;
	};

struct dElement /*A struct containing a pointing to the main list, a pointer to the next struct in the list, and 4 strings.*/
	{
	dll * list;
	de * next;
	char * str1;
	char * str2;
	char * str3;
	char * str4;
	};

dll * newList(); /*Creates a dummy list.*/
void addElement(dll * l, char * s1, char * s2, char * s3, char * s4); /*Appends a dummy element to a dummy list.*/
void delList(dll * l); /*Deletes the dummy list and all its elements.*/

#endif /*DUMMY_STRUCTURE_H*/
/*EOF*/
